import request from '@/axios/request';
import url from '@/axios/url';
const { mesUrl, adminUrl, dataUrl } = url();
// 打印记录列表分页查询
export function getList (params = {}) {
  return request({
    url: `${mesUrl}mesCabinetPrint`,
    method: 'get',
    params,
  });
}

// 新增
export function rowCreate (data = {}) {
  return request({
    url: `${mesUrl}mesCabinetPrint`,
    method: 'post',
    data,
  });
}
// 修改
export function rowPrint (id) {
  return request({
    url: `${mesUrl}mesCabinetPrint/print/${id}`,
    method: 'put',
  });
}
// 删除
export function rowDel (id) {
  return request({
    url: `${mesUrl}mesCabinetPrint/${id}`,
    method: 'delete',
  });
}
// 查询工种类列表
export function getPrintTypeList () {
  return request({
    url: `${adminUrl}dict/type/print_type`,
    method: 'get',
  });
}
// // 详情
// export function rowDetail (id) {
//   return request({
//     url: `${mesUrl}mesUserExtend/info/${id}`,
//     method: 'get',
//   });
// }
